<link rel="stylesheet" type="text/css" href="/static/calendar/5.10/main.min.css?v=version_0.2" />
<script type="text/javascript" src="/static/calendar/5.10/main.min.js?v=version_0.2"></script>

<style>

    #page_box {
        
        height: calc(100% - 70px);
        width: 100%;
    }


    .page_box_style {
        border: 1px solid #f2f2f2;
        box-shadow: 0 0 2px #888;
        border-radius: 10px;
        padding: 15px;
        background: white;
        display: inline-block;
        height: 100%;
        width: calc(100% - 70px);
        margin: auto 20;
        margin-top: 20px;
    }

</style>

<div>
    
    <!-- 日历内容 -->
    <div id="page_box" class="layui-inline">
        <!-- 默认显示空内容 -->
        <div class="page_box_style">
            <!-- <style>
                .text {
                    text-align: center;
                    font-weight: 800;
                    color: #a1a1a1;
                }
            
                .center-vertical {
                    position: relative;
                    top: 50%;
                    transform: translateY(-50%);
                }
            
                .center-horizontal {
                    position: relative;
                    left: 50%;
                    transform: translateX(-50%);
                }
            </style>
            <div class="center-vertical">
                <h1 class="nothing text">什么都没有</h1>
                <h4 class="text">请单击左侧项目查看详情</h4>
            </div> -->
        </div>
    </div>
    
</div>

<script type="text/javascript">
    layui.use(['layer', 'jquery'], function () {
        var $ = layui.jquery
            , layer = layui.layer;
        var obj_id= app.parseUrl().params.obj_id;
        app.runTpl("objectContent", {
            elem: ".page_box_style",
            objId: obj_id,
            leftButtons: [
                {
                    name: 'full-screen',
                    hint: '返回',
                    icon: ' custom-button layui-icon-left',
                    onClick: function () {
                        window.history.go(-1);
                    }
                }
            ]
            // onItemClick: function (item) {
            //     // // app.goToPage('/obj/getpage/p/iframe?obj_id=' + item.obj_id)
            //     // app.goToPage('obj/getpage/p/index6?obj_id=' + item.obj_id)
            //     // // app.goToPage('obj/getpage/p/example?obj_id=' + item.obj_id)
            //     // // $("#iframe1").attr("src","/calendar/obj?obj_id="+ item.obj_id);
            //     console.log("项目被点击", item);
            // }
        })
        
    })
</script>